package com.booking.springrestful.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.booking.springrestful.domain.Counselorschedule;
import com.booking.springrestful.domain.Users;
import com.booking.springrestful.domain.dto.UserDto;
import com.booking.springrestful.resp.PageResult;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

/**
* @author 13182
* @description 针对表【users】的数据库操作Service
* @createDate 2024-10-28 15:42:04
*/

public interface UsersService extends IService<Users> {


    Users userLogin(String username, String password);

    void userRegister(Users users);

    Users getUser(HttpServletRequest request);


    void changePass(String userName, String currentPassword, String newPassword);

    void userUpdate(String userName, Users user);

    PageResult<Users> getUserClient(UserDto userDto, String type);

    void deleteClient(ArrayList<Users> userList, String type);

    void updateClient(Users users);


    Boolean checkCon();

    Boolean conSuccess(String userName);

    List<Counselorschedule> getWorkTime(Integer userid);

    Integer getCouId(Integer userid);
}
